package org.jeecg.modules.config;

import org.jeecg.common.util.push.JPushUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @author guoyh
 * @ClassName JPushConfiguration
 * @Description
 * @since 2020/10/25 11:29
 **/
@Configuration
public class JPushConfiguration {

    @Resource
    private CustomProperties customProperties;

    @Bean
    public JPushUtils jPushUtils(){
        return new JPushUtils(customProperties.getJpush().getAppKey(),customProperties.getJpush().getMasterSecret());
    }
}
